$item) { if (strlen($k) == 32) { $deleteHash = $k; } } // only keep the initial part if there's a forward slash $shortUrl = current(explode("/", str_replace("~d", "", $_REQUEST['_page_url']))); $file = file::loadByShortUrl($shortUrl); // check it's active if ($file->deleteHash != $deleteHash) { $file = null; } } // do we have a return page $returnAccount = false; if ((isset($_REQUEST['returnAccount'])) && ((int) $_REQUEST['returnAccount'] == 1)) { $returnAccount = true; } if(coreFunctions::getUsersAccountLockStatus($Auth->id) == 1) { coreFunctions::redirect(WEB_ROOT . "/index." . SITE_CONFIG_PAGE_EXTENSION); } /* load file details */ if (!$file) { /* if no file found, redirect to home page */ coreFunctions::redirect(WEB_ROOT . "/index." . SITE_CONFIG_PAGE_EXTENSION); } /* delete file if submitted */ if ((int) $_REQUEST['delete']) { // reomve file $file->removeByUser(); // redirect to confirmation page $resultMsg = t('file_permanently_removed', 'File permanently removed.'); if ($file->errorMsg) { $resultMsg = $file->errorMsg; } if ($returnAccount) { coreFunctions::redirect(CORE_WEB_ROOT . '/account_home.' . SITE_CONFIG_PAGE_EXTENSION . '?s=' . urlencode($resultMsg)); } coreFunctions::redirect(WEB_ROOT . "/error." . SITE_CONFIG_PAGE_EXTENSION . '?e=' . urlencode($resultMsg)); } // get file path $filePath = file::getFileDomainAndPath($file->id); // include header require_once(SITE_TEMPLATES_PATH . '/partial/_header.inc.php'); ?>

: originalFilename; ?> (fileSize); ?>)